<template>
  <div class="me">
    <div class="navbar">
      <svg class="icon" aria-hidden="true" @click="$router.push('/')">
        <use xlink:href="#icon-iconfontyoujiantou-copy-copy-copy" />
      </svg>
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-shezhi" />
      </svg>
    </div>
    <div class="me-top">
      <div class="top-right">
        <img :src="$store.state.user.userDetail.data.profile.avatarUrl" alt />
      </div>
      <div class="top-content">
        <div class="username">{{$store.state.user.userDetail.data.profile.nickname}}</div>
        <span class="level">Lv.{{$store.state.user.userDetail.data.level}}</span>
      </div>
      <div class="top-icon">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-iconfontyoujiantou-copy-copy" />
        </svg>
      </div>
    </div>

    <div class="music-app">
      <div>
        <a href>
          <img src="@/assets/img/本地音乐.png" alt />
          <p>本地/下载</p>
        </a>
      </div>
      <div>
        <a href>
          <img src="@/assets/img/云盘.png" alt />
          <p>云盘</p>
        </a>
      </div>
      <div>
        <a href>
          <img src="@/assets/img/已购.png" alt />
          <p>已购</p>
        </a>
      </div>
      <div>
        <a href>
          <img src="@/assets/img/最近播放.png" alt />

          <p>最近播放</p>
        </a>
      </div>
      <div>
        <a href>
          <img src="@/assets/img/我的好友.png" alt />

          <p>我的好友</p>
        </a>
      </div>
      <div>
        <a href>
          <img src="@/assets/img/收藏.png" alt />

          <p>收藏和赞</p>
        </a>
      </div>
      <div>
        <a href>
          <img src="@/assets/img/我的播客.png" alt />
          <p>我的播客</p>
        </a>
      </div>
      <div>
        <a href>
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-jia3-copy" />
          </svg>
          <p>音乐应用</p>
        </a>
      </div>
    </div>

    <div class="my-like">
      <div class="like-left">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-wodexihuan" />
        </svg>
      </div>
      <div class="like-content">
        <div class="title">我喜欢的音乐</div>
        <span>0首</span>
      </div>
      <div class="like-right">
        <div class="xindong">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-xindong" />
          </svg>
          <span>心动模式</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
</script>
<style scoped lang="less">
.me {
  width: 100vw;
  height: 100vh;
  background-color: #f4f4f4;
  .navbar {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem;
    .icon {
      width: 0.5rem;
      height: 0.5rem;
    }
  }
  .me-top {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem;
    .top-right {
      img {
        margin-right: 0.2rem;
        width: 1rem;
        height: 1rem;
        border-radius: 0.5rem;
      }
    }
    .top-content {
      flex: 1;
      .username {
        font-family: "微软雅黑";
        font-size: 0.3rem;
        font-weight: 600;
        margin-bottom: 0.1rem;
      }
      .level {
        background-color: #fff;
        font-size: 0.2rem;
        border: 1px solid #ccc;
        border-radius: 0.3rem;
        padding: 0.03rem 0.1rem;
      }
    }
    .top-icon {
      display: flex;
      align-items: center;

      .icon {
        width: 0.5rem;
        height: 0.5rem;
        fill: black;
      }
    }
  }
  .music-app {
    display: flex;
    width: 7rem;
    height: 3.5rem;
    margin: 0 auto;
    border-radius: 0.1rem;
    background-color: #fff;
    flex-wrap: wrap;
    div {
      width: 1.75rem;
      height: 1.75rem;
      a {
        align-items: center;
        img {
          width: 0.5rem;
          height: 0.5rem;
          margin: 0.3rem 0.625rem 0.1rem 0.625rem;
        }
        p {
          text-align: center;
          font-size: 0.24rem;
        }
        .icon {
          margin: 0.3rem 0.625rem 0.1rem 0.625rem;
          width: 0.5rem;
          height: 0.5rem;
        }
      }
    }
  }
  .my-like {
    width: 7rem;
    height: 1.5rem;
    background-color: #fff;
    margin: 0.3rem auto;
    border-radius: 0.1rem;
    display: flex;
    justify-content: space-between;
    .like-left {
      width: 1.5rem;
      height: 100%;
      .icon {
        margin: 0.2rem;
        width: 1rem;
        height: 1rem;
      }
    }
    .like-content {
      padding: 0.3rem 0;
      flex: 1;
      .title {
        font-size: 0.28rem;
      }
      span {
        font-size: 0.22rem;
      }
    }
    .like-right {
      width: 2rem;
      height: 100%;
      .xindong {
        display: flex;
        margin: 0.5rem 0.2rem;
        border: 1px solid #ccc;
        border-radius: 0.4rem;
        align-items: center;
        justify-content: center;
        padding: 0.03rem 0.05rem;
        .icon {
          width: 0.2rem;
          height: 0.2rem;
        }
        span {
          font-size: 0.2rem;
        }
      }
    }
  }
}
</style>